<html>


	<body>
		<div>
			
		</div>
		
		<input >
		<script>
			var div = document.querySelector("div")
			// 设置元素的内容
			// el.innerHTML = "值" // 能够识别HTML标签
			// el.innerText = "值" // 不识别HTML标签

			var str = "<h1>今天星期六，祝大家周末愉快！！！</h1>"
			
			div.innerHTML = str
			
			// 设置input框值
			var ipt = document.querySelector("input")
			ipt.value = "123"
			
		</script>
	</body>
</html>